package com.dazhi.show.story.emperor.controller;

import com.dazhi.show.core.BaseController;
import com.dazhi.show.story.emperor.dao.Emperor;
import com.dazhi.show.story.emperor.server.EmperorService;
import com.dazhi.show.story.emperor.server.EmperorServiceImpl;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@RestController
@RequestMapping("/api/emperor")
public class EmperorController extends BaseController<EmperorService,Emperor> {
    @Resource
    private EmperorService emperorService;

    /*@GetMapping
    public Result<Page<Emperor>> list(Integer current, Integer size) {
        Page<Emperor> page = new Page<>(current, size);
        page.addOrder(OrderItem.desc("id"));
        Page<Emperor> emperorPage = emperorService.page(page);
        return new Result<Page<Emperor>>(200,"success",emperorPage);
    }*/

}
